cmake_minimum_required(VERSION 3.10)
project(visual_planes)

set(CMAKE_CXX_STANDARD 11)
set(CMAKE_BUILD_TYPE "Release")
# 设置PCL点云库依赖
find_package(PCL)
include_directories(${PCL_INCLUDE_DIRS})
list(REMOVE_ITEM PCL_LIBRARIES "vtkproj4")#不加这个会报错
link_directories(${PCL_LIBRARY_DIRS})
link_libraries(${PCL_LIBRARIES})
add_definitions(${PCL_DEFINITIONS})
find_package(Utils REQUIRED)
include_directories(${Utils_INCLUDE_DIRS})
link_libraries(${Utils_LIBRARIES})

add_executable(visual_planes main.cpp ../plane_info.cpp)
install(TARGETS visual_planes RUNTIME DESTINATION bin)